package cn.com.zpark.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @PackageName: cn.com.zpark.listener
 * @ClassName: ListenerDemo01
 * @Description:
 * @author: RZS
 * @date: 2021/11/17  18:07
 */
@WebListener
public class ListenerDemo01 implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("ServletContext对象创建");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("ServletContext对象销毁");
    }
}
